import $axios from "@/utils/request.js";

// 保存文章分类
export function saveCategory(data) {
    return $axios.post('/api/category/save', data);
}

// 删除文章分类
export function removeCategory(id) {
    return $axios.delete(`/api/category/delete/${id}`);
}

// 分类下拉列表
export function getCategoryDropList() {
    return $axios.get('/api/category/drop-list');
}

// 分类列表
export function getCategoryList(params) {
    return $axios.get('/api/category/list', {params});
}